package pattern.decorator;

/*
 * @author changfei
 * @date  2023/11/28 15:25
 * @description
 */
public class Ham extends Ingredients{
    public Ham(FireRice fireRice) {
        super(fireRice);
    }

    @Override
    public String desc() {
        return super.desc()+"+火腿";
    }

    @Override
    public int price() {
        return super.price()+3;
    }
}
